str1 = input("请输入一段字符串：")
dict = {"alpha":0,"number":0}
for i in str1:
    if i.isalpha():
        dict["alpha"] = dict["alpha"]+1
    elif i.isdigit():
        dict["number"] = dict["number"]+1
print(dict)

str2 = input("请再输入一段字符串：")
dict2 = {}
for j in str2:
    if not "{}".format(j) in dict2:
        dict2[j] = 1
    else:
        dict2[j] = dict2[j] + 1
print(dict2)